package com.hframe.typefilter;

/**
 * 字符串转数字
 *
 * @author Administrator
 */
public class StringToDouble implements FilterRef<Double, Object> {
    @Override
    public Double filter(Object object) throws Exception {
        return Double.parseDouble((String) object);
    }

    public static Double parse(String object) {
        try{
            return Double.parseDouble(object);
        }catch (Exception e){
            return null;
        }

    }

}